﻿using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hong.Common.Encryption
{
    public  class SecurityStatic
    {
        private readonly IConfiguration Configuration;
        public SecurityStatic(IConfiguration configuration)
        {
            Configuration = configuration;
          
        }

        public string Securityinfo() {
            var SMSSQL = Configuration.GetConnectionString("MSSQL");
            string MSSQL = SecurityHelper.DecryptDES(SMSSQL);
            return MSSQL;
        }

    }
}
